import { Component } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { WidgetStorageService } from 'src/app/services/widget-storage.service';

@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.scss'],
})
export class HeaderComponent {
  public backgroundColor;
  imgURL: string | ArrayBuffer;
  public imagePath: any;
  constructor(
    public dialog: MatDialog,
    private widgetStorage: WidgetStorageService
  ) {
    this.backgroundColor = this.widgetStorage.backgroundColor;
    this.imgURL = this.widgetStorage.imgURL;
    this.imagePath = this.widgetStorage.imagePath;
  }

}
